package com.aspose.cells;

public class SmartTagSetting extends CollectionBase {
   private Worksheet b;

   Worksheet a() {
      return this.b;
   }

   SmartTagSetting(Worksheet sheet) {
      this.b = sheet;
   }

   public int add(int row, int column) {
      for(int var3 = 0; var3 < this.getCount(); ++var3) {
         SmartTagCollection var4 = (SmartTagCollection)this.a.get(var3);
         if (var4.getRow() == row && var4.getColumn() == column) {
            return var3;
         }
      }

      SmartTagCollection var5 = new SmartTagCollection(this, row, column);
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var5);
      return this.getCount() - 1;
   }

   public int add(String cellName) {
      byte var2 = 0;
      byte var3 = 0;
      int[] var4 = new int[]{var2};
      int[] var5 = new int[]{var3};
      CellsHelper.a(cellName, var4, var5);
      int var6 = var4[0];
      int var7 = var5[0];
      return this.add(var6, var7);
   }

   public SmartTagCollection get(int index) {
      return (SmartTagCollection)this.a.get(index);
   }

   public SmartTagCollection get(int row, int column) {
      for(int var3 = 0; var3 < this.getCount(); ++var3) {
         SmartTagCollection var4 = (SmartTagCollection)this.a.get(var3);
         if (var4.getRow() == row && var4.getColumn() == column) {
            return var4;
         }
      }

      return null;
   }

   public SmartTagCollection get(String cellName) {
      byte var2 = 0;
      byte var3 = 0;
      int[] var4 = new int[]{var2};
      int[] var5 = new int[]{var3};
      CellsHelper.a(cellName, var4, var5);
      int var6 = var4[0];
      int var7 = var5[0];
      return this.get(var6, var7);
   }

   void a(SmartTagSetting var1) {
      this.a.clear();

      for(int var2 = 0; var2 < var1.a.size(); ++var2) {
         SmartTagCollection var3 = (SmartTagCollection)var1.a.get(var2);
         SmartTagCollection var4 = new SmartTagCollection(this, var3.getRow(), var3.getColumn());
         com.aspose.cells.b.a.a.ze.a(this.a, (Object)var4);
      }

   }
}
